home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Scene Storm
/
Scene Storm - Volume 1.iso
/
coding
/
c
/
northc
/
northc1.lzh
/
include
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-08-30
|
317b
|
14 lines
#ifndef ASSERT_H
#define ASSERT_H
#ifdef NDEBUG
#define assert(cond)
#else
/* NorthC does not define __FILE__ and __LINE__ */
static char __AssertFmt[] = "assert failed in '%s' at line %d.\n";
#define assert(cond) if(!(cond)) \
{ fprintf(stderr, __AssertFmt, __FILE__, __LINE__); abort(); }
#endif
#endif ASSERT_H